package com.lyn.auxiliarytool.views.activity;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import com.lyn.auxiliarytool.databinding.ActivityMainBinding;
import com.lyn.auxiliarytool.views.view.WhiteboardView;

public class MainActivity extends BaseActivity<ActivityMainBinding> {


    @Override
    public void create(@Nullable Bundle savedInstanceState) {

    }

    @Override
    public ActivityMainBinding getViewBinding() {
        return ActivityMainBinding.inflate(getLayoutInflater());
    }

    @Override
    public void initView() {
        vb.paintBt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                vb.whiteboard.setMode(WhiteboardView.BRUSH_MODE);
            }
        });
        vb.eraserBt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                vb.whiteboard.setMode(WhiteboardView.ERASER_MODE);
            }
        });
    }
}